import React from 'react';

import { Badge } from 'antd';

import {
  stateMap,
  stateBadgeMap
} from './map';

export const stateBadge = (state: any) => {
  return <Badge status={stateBadgeMap[state] as any} text={`已${stateMap[state]}`}/>
}
